<template>
  <div style="margin-top: 40px;">
    <van-tabbar v-model="active" border route>
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="orders-o" to="/classify">分类</van-tabbar-item>
      <van-tabbar-item icon="eye-o" to="/bebuy">值得买</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/shopcart">购物车</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="/center">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue"
export default defineComponent({
  name: 'Tabbar',
})
</script>

<script lang="ts" setup>
import { ref } from 'vue';
const active = ref(0);
</script>

<style scoped></style>